package com.smart.home.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@ApiModel("设备信息")
public class Devices {

    @ApiModelProperty("设备名称")
    private String name;

    @ApiModelProperty("设备类型ID")
    private Integer typeId;

    @ApiModelProperty("所属家庭ID")
    private Long homeId;

    @ApiModelProperty("制造商")
    private String manufacturer;

    @ApiModelProperty("型号")
    private String model;



    @ApiModelProperty("状态：ONLINE/OFFLINE/ERROR")
    private String status;

    @ApiModelProperty("创建时间")
    private LocalDateTime createdAt;

    @ApiModelProperty("更新时间")
    private LocalDateTime updatedAt;

    @ApiModelProperty("IPv4地址（整型存储）")
    private Long ipAddress;



    @ApiModelProperty("设备ID")
    private Long id;

    @ApiModelProperty("固件版本(可为空，后序添加)")
    private String firmwareVersion;

    @ApiModelProperty("最后在线时间（可为空）")
    private LocalDateTime lastOnline;




}
